package me.xADudex.RandomLocation;

public enum ZoneType
{
    TELEPORT("TELEPORT", 0), 
    PORTAL("PORTAL", 1), 
    NON_TELEPORT("NON_TELEPORT", 2);
    
    private ZoneType(final String s, final int n) {
    }
    
    public static ZoneType getByString(final String s) {
        if (s.equalsIgnoreCase("tp") || s.equalsIgnoreCase("teleport")) {
            return ZoneType.TELEPORT;
        }
        if (s.equalsIgnoreCase("portal") || s.equalsIgnoreCase("p")) {
            return ZoneType.PORTAL;
        }
        if (s.equalsIgnoreCase("ntp") || s.equalsIgnoreCase("non_teleport")) {
            return ZoneType.NON_TELEPORT;
        }
        return null;
    }
    
    public String getShortString() {
        if (this.equals(ZoneType.TELEPORT)) {
            return "tp";
        }
        if (this.equals(ZoneType.PORTAL)) {
            return "p";
        }
        if (this.equals(ZoneType.NON_TELEPORT)) {
            return "ntp";
        }
        return null;
    }
    
    public String getNormalString() {
        if (this.equals(ZoneType.TELEPORT)) {
            return "Teleport";
        }
        if (this.equals(ZoneType.PORTAL)) {
            return "Portal";
        }
        if (this.equals(ZoneType.NON_TELEPORT)) {
            return "NonTeleport";
        }
        return null;
    }
}
